<?php

/**
 * @package    [PACKAGE_NAME]
 *
 * @author     [AUTHOR] <[AUTHOR_EMAIL]>
 * @copyright  [COPYRIGHT]
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 * @link       [AUTHOR_URL]
 */

use Joomla\CMS\MVC\View\HtmlView;

defined('_JEXEC') or die;

jimport('joomla.application.component.view');
/**
 * WxMinipro view.
 *
 * @package   [PACKAGE_NAME]
 * @since     1.0.0
 */
class WxMiniproViewWxMinipro extends HtmlView
{
    public function display($tpl = null)
    {
        $document = JFactory::getDocument();
        $document->setMimeEncoding('application/json');

        $response = new stdClass();
        $response->openid = "这是json.view";

        // Output the JSON data.
        echo json_encode($response);
    }
}
